/* Modern checkbox controls use a 24px hit area with the 18px Figma glyph. */
body.modern-ui-body input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: url("../../../images/modern-ui/checkbox-unchecked.svg") center / 22px 22px no-repeat !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  cursor: pointer;
  flex: 0 0 24px !important;
  height: 24px !important;
  margin: 0 8px 0 0;
  vertical-align: middle;
  width: 24px !important;
}

body.modern-ui-body input[type="checkbox"]:checked {
  background-image: url("../../../images/modern-ui/checkbox-selected.svg") !important;
}

body.modern-ui-body input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

body.modern-ui-body input[type="checkbox"]:disabled:checked {
  background-image: url("../../../images/modern-ui/checkbox-disabled-selected.svg") !important;
}

body.modern-ui-body input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--proposal-focus-ring, #03748d) !important;
  outline-offset: 2px;
}

/* Advanced Search reserves a larger hit area for this two-line option.
 * Draw both states with matching SVG bounds instead of outlining that area. */
@layer modern-checkbox-sizing {
  #curriculog-content.modern-ui #curriculog-list-column-results-sorting-advanced #report-9-include-entity-children {
    background-color: transparent !important;
    background-image: url("../../../images/modern-ui/checkbox-unchecked.svg") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 24px 24px !important;
    border: 0 !important;
    border-radius: 0 !important;
    flex: 0 0 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    width: 34px !important;
  }

  #curriculog-content.modern-ui #curriculog-list-column-results-sorting-advanced #report-9-include-entity-children:checked {
    background-image: url("../../../images/modern-ui/lucide-checkbox-selected.svg") !important;
  }

  #curriculog-content.modern-ui #curriculog-list-column-results-sorting-advanced #report-9-include-entity-children:disabled:checked {
    background-image: url("../../../images/modern-ui/checkbox-disabled-selected.svg") !important;
  }
}
